package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品对象 goods
 * 
 * @author ruoyi
 * @date 2021-03-26
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long goodsid;

    /** 商品分类ID */
    @Excel(name = "商品分类ID")
    private Long goodscategoryid;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsname;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodspic;

    /** 兑换积分 */
    @Excel(name = "兑换积分")
    private Long goodsaccpoints;

    /** 是否上架  1已上架  2已下架 */
    @Excel(name = "是否上架  1已上架  2已下架")
    private Long isoff;

    /** 是否删除 1.未删除 2.已删除 */
    @Excel(name = "是否删除 1.未删除 2.已删除")
    private Long isdel;

    /** 创建人 */
    @Excel(name = "创建人")
    private String cname;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String cid;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    public void setGoodsid(Long goodsid) 
    {
        this.goodsid = goodsid;
    }

    public Long getGoodsid() 
    {
        return goodsid;
    }
    public void setGoodscategoryid(Long goodscategoryid) 
    {
        this.goodscategoryid = goodscategoryid;
    }

    public Long getGoodscategoryid() 
    {
        return goodscategoryid;
    }
    public void setGoodsname(String goodsname) 
    {
        this.goodsname = goodsname;
    }

    public String getGoodsname() 
    {
        return goodsname;
    }
    public void setGoodspic(String goodspic) 
    {
        this.goodspic = goodspic;
    }

    public String getGoodspic() 
    {
        return goodspic;
    }
    public void setGoodsaccpoints(Long goodsaccpoints) 
    {
        this.goodsaccpoints = goodsaccpoints;
    }

    public Long getGoodsaccpoints() 
    {
        return goodsaccpoints;
    }
    public void setIsoff(Long isoff) 
    {
        this.isoff = isoff;
    }

    public Long getIsoff() 
    {
        return isoff;
    }
    public void setIsdel(Long isdel) 
    {
        this.isdel = isdel;
    }

    public Long getIsdel() 
    {
        return isdel;
    }
    public void setCname(String cname) 
    {
        this.cname = cname;
    }

    public String getCname() 
    {
        return cname;
    }
    public void setCid(String cid) 
    {
        this.cid = cid;
    }

    public String getCid() 
    {
        return cid;
    }
    public void setCtime(Date ctime) 
    {
        this.ctime = ctime;
    }

    public Date getCtime() 
    {
        return ctime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsid", getGoodsid())
            .append("goodscategoryid", getGoodscategoryid())
            .append("goodsname", getGoodsname())
            .append("goodspic", getGoodspic())
            .append("goodsaccpoints", getGoodsaccpoints())
            .append("isoff", getIsoff())
            .append("isdel", getIsdel())
            .append("cname", getCname())
            .append("cid", getCid())
            .append("ctime", getCtime())
            .toString();
    }
}
